package com.ymatou.iapi.userservice.parameter.enums;

/**
 * Created by liguo on 2016/12/22.
 */
public enum BillsActionTypeEnum {

	
	ModifyLoginId(11,"修改loginId"),
	BindMobile(1,"码头账号绑定登录手机"),
	ModifyLoginMobile(6,"修改登录手机"),
	ThirdPartyBindMobile(10,"第三方账号绑定登录手机"),
	BindToLoginMail(3,"收货地址邮箱绑定到登录邮箱"),
	ModifyLoginMail(5,"修改登录邮箱"),
	BindLoginMail(4,"绑定登录邮箱"),
	ThridPartyBindMail(2,"第三方账号绑定登录邮箱"),
	ActivateEmail(7,"激活邮箱"),
    CheckIsActivateEmail(8,"检查是否要通知用户去认证邮箱"),
    CheckIsExistsSameBills(12,"修改检查是否存在相同的凭据"),

    ;
    BillsActionTypeEnum(int code, String message){
        this.code=code;
        this.message=message;
    }
    public static BillsActionTypeEnum getByCode(int code){
        for (BillsActionTypeEnum BillsActionTypeEnum : BillsActionTypeEnum.values()) {
            if (BillsActionTypeEnum.getCode() == code) {
                return BillsActionTypeEnum;
            }
        }
        return null;
    }
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    private int code;
    private String message;
}
